package pseudoAssemblerCompiler.twopassassembler.model.entities;

/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 15.04.12
 * Time: 18:24
 * To change this template use File | Settings | File Templates.
 */
public class OperationCode implements Comparable {

    private String _mnemonicCode;

    private Integer _binaryCode;

    private Integer _lengthOfCommand;

    private Integer _typeOfAddressing;

    private boolean _directive;

    public boolean is_directive() {
        return _directive;
    }

    public void set_directive(boolean _directive) {
        this._directive = _directive;
    }

    public OperationCode() {
    }

    public OperationCode(String _mnemonicCode, Integer _binaryCode,
                         Integer _lengthOfCommand, Integer _typeOfAddressing,
                         boolean _directive) {
        this._mnemonicCode = _mnemonicCode;
        this._binaryCode = _binaryCode;
        this._lengthOfCommand = _lengthOfCommand;
        this._typeOfAddressing = _typeOfAddressing;
        this._directive = _directive;
    }

    public String get_mnemonicCode() {
        return _mnemonicCode;
    }

    public void set_mnemonicCode(String _mnemonicCode) {
        this._mnemonicCode = _mnemonicCode;
    }

    public Integer get_binaryCode() {
        return _binaryCode;
    }

    public void set_binaryCode(Integer _binaryCode) {
        this._binaryCode = _binaryCode;
    }

    public Integer get_lengthOfCommand() {
        return _lengthOfCommand;
    }

    public void set_lengthOfCommand(Integer _lengthOfCommand) {
        this._lengthOfCommand = _lengthOfCommand;
    }

    public Integer get_typeOfAddressing() {
        return _typeOfAddressing;
    }

    public void set_typeOfAddressing(Integer _typeOfAddressing) {
        this._typeOfAddressing = _typeOfAddressing;
    }

    @Override
    public int compareTo(Object o) {
        return 0;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
